package com.myplans.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class SearchEvent extends GwtEvent<SearchEventHandler> {
	private String searchString;
	
	public String getSearchString() {
		return searchString;
	}

	public static Type<SearchEventHandler> TYPE = new Type<SearchEventHandler>();

	public SearchEvent(String searchString) {
		this.searchString = searchString;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<SearchEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(SearchEventHandler handler) {
		handler.onSearch(this);
	}


}
